<template>
  <div :class="['headline', {active: show}]">{{ title }}</div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    },
    show: {
      type: Boolean,
      required: true
    }
  }
}
</script>

<style lang="less" scoped>
.headline {
  text-align: center;
  font-size: 1.875rem;
  color: #212529;
  line-height: 1.875rem;
  padding-top: 0px;
  &::after {
    content: '';
    display: block;
    width: 0;
    height: 0.25rem;
    background-color: rgb(54, 93, 155);
    margin: 6px auto 60px;
    letter-spacing: 2px;
    transition: all 1s;
  }
  &.active::after {
    width: 4.375rem;
  }
}
</style>
